@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-green-theme.scss';
@import './icon.scss';
@import './element-ui.scss';
@import './videojs.scss';
@import './sidebar.scss';
@import './space.scss';//margin padding width height border-radius等
@import './font.scss';
@import './typeset.scss';//布局样式 左右布局、盒模型等
@import './skin.scss';//背景色、字体颜色

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  // font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
  font-family: 'PingFang SC', "Helvetica Neue", 'Hiragino Sans GB', 'Microsoft YaHei', Helvetica, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.clearfix {
  &::after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

// main-container global css
.app-container {
  padding: 10px;
  background: $gray;
}

.pointer {
  cursor: pointer;
}

.pull-right,
.float-right {
  float: right;
}

.pull-left {
  float: left;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-center {
  text-align: center;
}

.inline-block {
  display: inline-block;
}

//layout
.m-auto {
  margin: auto;
}

.scroll {
  overflow: auto;
  scroll-behavior: smooth;
}

.scroll-x {
  overflow-x: auto;
  scroll-behavior: smooth;
}

.scroll-y {
  overflow-y: auto;
  scroll-behavior: smooth;
}

.overflow-hidden {
  overflow: hidden;
}
// 元素不可见，但占位
.invisible {
  visibility: hidden;
}

// position
.relative {
  position: relative;
}

// 必须作用在块元素上才能生效
.toe {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -o-text-overflow: ellipsis;
}

.shadow {
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.12);
}

.bold {
  font-weight: bold;
}

//左侧可拖拽伸缩宽度的，子元素要加的class，页面显示悬浮的指针会和实际交互相符，展示更好看
.no-drag-content {
  width: calc(100% - 1px);
  cursor: auto;
}

.text-btn-primary {
  font-size: 13px;
  color: $theme;

  &.pointer {
    cursor: pointer;
  }

  &:hover {
    opacity: 0.8;
  }
}

.gray-button {
  display: inline-block;
  padding: 0 5px;
  color: rgba(0, 0, 0, 0.65);
  font-size: 13px;
  cursor: pointer;
  border-radius: 2px;

  &.fill {
    background-color: #eee;
  }

  &.plain {
    background-color: #fff;
    border: 1px solid #d3d3d3;
  }
}
// 红色文字按钮
.text-button {
  cursor: pointer;
  display: inline-block;

  &.red {
    color: #ff0019;
  }
}

.button {
  font-family: sans-serif;
  display: inline-block;
  padding: 0 5px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  border-radius: 2px;

  &.fill {
    background-color: $theme;
    border: 1px solid $theme;
  }

  &.plain {
    border: 1px solid $theme;
    color: $theme;
  }
}

span[size="medium"] {
  padding: 7px 10px;
  border-radius: 4px;
  font-weight: bold;
}

// 地图悬浮窗阴影
.map-float-shoadow {
  box-shadow: 2px 0 6px 0 rgba(0, 21, 41, 0.16);
}
